<template>
  <!--模板-->
  <h1> Typescript 的 model</h1>
  {{ model }}
</template>
  
  
<script setup lang="ts">
  import { reactive } from 'vue'

  import type { Person, Person1 } from './ts-type'

  const model = defineModel<Person1>({
    // type:  Person, // Boolean | String | Number | Date | Object | Array | Function
    // default: '', // () => {}
    
    required: true // 必填
  })
    

</script>